module Scrum
	class Shell
		
		def initialize where_to_add_functions
			#ads shell functions to the kernel
			def where_to_add_functions.show_iteration iteration
				out = "Sprint ##{iteration.id} - #{iteration.description}\n" + 
	           			"TODO:\n"
						
				iteration.stories.each{|story|
				    out = out + "#{story.id} - #{story.description}\n"
				}
				
				out = out + "IN PROGRESS:\n"+ "DONE:\n"
				puts out
				out								
			end
		end
		
	end
end